package com.lytoyo.neihanduanzi.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * Package:com.lytoyo.neihanduanzi.model.dto
 *
 * @ClassName:BlogCommentDto
 * @Create:2025/3/16 11:38
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Component
public class BlogCommentDto{

    private Long blogId;

    private Long userId;

    //是否是父级评论，如果是则为0,否则为1
    private Integer rootComment;

    //当评论为子评论时，该id指向父评论Id，否则为0
    private Long toRootCommentId;

    //评论类型，当为0时是文字评论，1为图片评论,2为图片和文字混评
    private Integer type;

    private String comment;
}
